//
//  BLBasePickView.m
//  Byelone
//
//  Created by Qi Liu on 2021/2/8.
//

#import "BLBasePickView.h"


@implementation BLBasePickView



-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
        btn.frame = frame;
        [self addSubview:btn];
        [btn addTarget:self action:@selector(disMissView) forControlEvents:UIControlEventTouchUpInside];
    }
    return self;
}

-(void)disMissView{
    [UIView animateWithDuration:0.2 animations:^{
        self.alpha = 0;
    } completion:^(BOOL finished) {
        [self removeFromSuperview];
    }];
}

-(void)sureClick{
    [self disMissView];
}

@end
